<!--包含头部文件-->
{include file="public/header" /}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 用户列表 </nav>
<div class="page-container">


  <div class="mt-20">
	<table class="table table-border table-bordered table-bg table-hover table-sort">
	  <thead>
	  <tr class="text-c">
		<th width="80">ID</th>
		<th width="100">用户名称</th>
		<th width="30">最后登录时间</th>
                <th width="30">邮箱</th>
		<th width="150">联系电话</th>
		<th width="60">状态</th>
		<th width="60">申请时间</th>
		<th width="100">操作</th>
	  </tr>
	  </thead>
	  <tbody>
	  {volist name="user" id="vo"}
	  <tr class="text-c">
		<td>{$vo.id}</td>
		<td>{$vo.username}</td>
		<td class="text-c">{$vo.last_login_time|date="Y-m-d h:i:s", ###}</td>
		<td class="text-c">{$vo.email}</td>
		<td>{$vo.mobile}</td>
		<td class="td-status"><a href="{:url('user/status',['id'=>$vo.id, 'status'=>$vo.status==1?-1:1])}" title="点击修改状态">{$vo.status|DealStatus}</a></td>
                <td class="td-status">{$vo.create_time}</td>
		<td class="td-manage">
                    <a style="text-decoration:none" class="ml-5" onClick="o2o_edit('用户','{:url('user/detail', ['id'=>$vo.id,'status'=>'1'])}')" href="javascript:;" title="编辑">
                        <i class="Hui-iconfont">&#xe6df;</i>
                    </a> 
                        <a style="text-decoration:none" class="ml-5" onClick="o2o_del('{:url('user/status', ['id'=>$vo.id, 'status'=>2])}')" href="javascript:;" title="删除">
                            <i class="Hui-iconfont">&#xe6e2;</i>
                        </a>
                    <a style="text-decoration:none" class="ml-5"  href="{:url('user/status',['id'=>$vo.id, 'status'=>-1])}" title="不通过">
                                <i class="Hui-iconfont">不通过</i>
                    </a>
                </td>
	  </tr>
	  {/volist}

	  </tbody>
	</table>
  </div>
    <!--调用分页-->
  {:pagination($user)}

  <!--包含头部文件-->
  {include file="public/footer" /}
